package com.ponhu.ea2.goodsCenter.provider.service;

import com.ponhu.ea2.dto.PhInventoryAccessoryDto;
import com.ponhu.ea2.entity.Inventory;
import com.ponhu.ea2.entity.PhInventoryAccessory;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 货品配件附件表  服务类
 *
 * @author ${author}
 * @since 2021-10-20
 */
public interface PhInventoryAccessoryService extends IService<PhInventoryAccessory> {

    /**
     * 批量编辑货品关联附件和配件信息
     *
     * @param annexList
     * @param accessoryList
     */
    void editInventoryAccessories(Inventory inventory,
                                  List<PhInventoryAccessoryDto> annexList,
                                  List<PhInventoryAccessoryDto> accessoryList);

    List<PhInventoryAccessory> getInventoryAccessorys(Long inventoryId);

}
